package com.stx.day1011;

import java.io.Serializable;

/**
 * packageName com.stx.day1011
 *
 * @author YangYi
 * @className User
 * @date 2025/10/11
 * @description TODO
 */
public class User implements Serializable {
    // 版本号
    private static final long serialVersionUID = -1495496795571214005L;
    private String name;
    private int age;
    private String mobile;

    public User(String name, int age, String mobile) {
        this.name = name;
        this.age = age;
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", mobile='" + mobile + '\'' +
                '}';
    }
}
